class CreateContents < ActiveRecord::Migration
	def self.up
		create_table :contents  do |t|
			t.string :name, :limit => 80, :null => false
			t.string :qualified_name
			t.string :url
			t.integer :folder_id
			t.string :presentable_type
			t.integer :presentable_id
			t.integer :position
			t.userstamps
			t.timestamps
    end
		define_foreign_key_column :contents, :folder_id, :folders
  end

	def self.down
		drop_table :contents
  end
end
